import request from "@/utils/request";

// 获取快递员列表数据
export const getKuaiDiListApi = (params) => {
  return request({
    method: "GET",
    url: "/manager/business-hall/courier/page",
    params,
  });
};
//获取司机列表
export const getSiJiListApi = (params) => {
  return request({
    method: "GET",
    url: "/manager/driver/page",
    params,
  });
};
//获取排班列表
export const getPanBanListApi = (params) => {
  return request({
    method: "GET",
    url: "manager/work-schedulings",
    params,
  });
};
// 获取驾驶人信息
export const getSijiJiaShiApi = (id) => {
  return request({
    method: "GET",
    url: `/manager/driverLicense/${id}`,
    params: {
      0: id,
    },
  });
};
// 获取驾驶证信息
export const getSijiXinApi = (id) => {
  return request({
    method: "GET",
    url: `/manager/driver/${id}`,
    params: {
      0: id,
    },
  });
};
// 获取排班信息列表
export const getPaiBanListApi = (params) => {
  return request({
    method: "GET",
    url: "/manager/work-patterns/page",
    params,
  });
};
//获取排班工作模式
export const getPanBanWorkApi = () => {
  return request({
    method: "GET",
    url: "/manager/work-patterns/all",
  });
};
